import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const productManager: AppRouteModule = {
  path: '/productManager',
  name: 'productManager',
  component: LAYOUT,
  redirect: '/productManager/productPlace',
  meta: {
    orderNo: 11,
    icon: 'icon-park-outline:ad-product',
    title: t('routes.demo.productManager.productManager'),
  },
  children: [
    {
      path: 'productPlace',
      name: 'productPlace',
      meta: {
        title: t('routes.demo.productManager.productWorkPlace'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/productManager/index.vue'),
    },
  ],
};

export default productManager;
